-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Styles Revisions API: backport changes from Core #52095
Global Styles Revisions API: backport changes from Core #52095
Conversation
6be3e43
to
7c56354
Compare
Flaky tests detected in 7c56354. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5408182604
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! The changes look good and revisions are still working as expected.
What about the class Gutenberg_REST_Global_Styles_Revisions_Controller
added in #49974? Should that be moved to lib/compat/wordpress-6.3/
now that the controller is in core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was done a while back in b6986e0b, unless I'm missing something?
No, that's correct, I should have checked more carefully 😄
What?
Backport changes to the Global styles revisions endpoint from Core to Gutenberg.
Changes include:
X-Wp-Total
andX-Wp-Totalpages
See: WordPress/wordpress-develop#4606
Testing Instructions
Check that there are no regressions. Check out the test description over at #50089
A quick way to test the endpoint in the site editor, fire up this branch and head over to the site editor.
In your browser's console, switch to the network tab and run the following :
Run PHP unit tests:
For the
/global-styles/<id>/revisions
endpoint, check that the response headers are set: